﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Artemis;


namespace JAWWS
{
    class Ceiling
    {
        public float posX, posY, posZ = 0;
        public uint texID;

        public Ceiling()
        {
            texID = 3;
        }
        public Ceiling(MainForm main)
        {
            texID = main.TexIDs[3];
        }
        public void draw()
        {
            int i = 0;

            GL.glBegin(GLenum.GL_POLYGON);

            GL.glTexCoord2d(1.0, 0.0);
            GL.glVertex3f(1.0f, -0.05f, 1.0f + i);

            GL.glTexCoord2d(1.0, 1.0);
            GL.glVertex3f(1.0f, -0.05f, -1.0f + i);

            GL.glTexCoord2d(0.0, 1.0);
            GL.glVertex3f(-1.0f, -0.05f, -1.0f + i);

            GL.glTexCoord2d(0.0, 0.0);
            GL.glVertex3f(-1.0f, -0.05f, 1.0f + i);
            GL.glEnd();
        }
    }
}
